package cn.ichensw.otherworldlystationbackend.service;

import cn.ichensw.otherworldlystationbackend.model.entity.FilmTelevisionUser;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author csw
* @description 针对表【film_television_user】的数据库操作Service
* @createDate 2023-08-15 12:18:39
*/
public interface FilmTelevisionUserService extends IService<FilmTelevisionUser> {

    /**
     * 恢复被删除的数据
     *
     * @param filmId 电影ID
     * @param userId 用户ID
     */
    void updateDeletedFilmTelevisionUser(Long filmId, Long userId);

    /**
     * 根据电影ID和用户ID查询关联表记录
     *
     * @param filmId 电影ID
     * @param userId 用户ID
     * @return FilmTelevisionUser
     */
    FilmTelevisionUser selectFilmTelevisionUserByUserIdAndFilmId(Long filmId, Long userId);
}
